package com.cooper.scraper.show;

import java.util.List;

import android.view.ViewGroup;

import com.cooper.android.comm.Resource;

public abstract class FanartsShowBuilder<T extends Resource> {

	protected FanartViewStrategy<T> fanartViewStrategy;

	protected FanartsShowView<T> fanartsShowView;

	public abstract void buildFanartViewStrategy();

	public abstract void buildAdapterView();

	public abstract void buildFanartImgStrategy();

	protected abstract float getFanartWHScale();

	public FanartsShowView<T> getFanartsShowView() {
		return fanartsShowView;
	}

	public FanartViewStrategy<T> getFanartViewStrategy() {
		return fanartViewStrategy;
	}

	public void showFanartShowView(ViewGroup parent,
			FanartAdapter<T> fanartAdapter,
			List<ResourceCommandAction<T>> commands) {
		fanartAdapter.setFanartViewStrategy(fanartViewStrategy);
		fanartsShowView.setAdapter(fanartAdapter);
		fanartsShowView.setCommands(commands);
		fanartsShowView.showTo(parent);
	}

	
}
